package com.kobe.Management.service.Impl;

import com.kobe.Management.domain.Management;
import com.kobe.Management.mapper.ManagementMapper;
import com.kobe.Management.service.ManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;

@Service
public class ManagementServiceImpl implements ManagementService {

    @Autowired
    private ManagementMapper managementMapper;

    @Override
    public List<Management> listArticle(Management management) {
        return managementMapper.listArticle(management);
    }

    @Override
    public Management getArticle(BigInteger articleId) {
        return managementMapper.getArticle(articleId);
    }

    @Override
    public int insertArticle(Management management) {
       return managementMapper.insertArticle(management);
    }

    @Override
    public int updateArticle(Management management) {
        return managementMapper.updateArticle(management);
    }
}
